import request from '@/utils/request'
// 查询id
export function getSalesDetailid(id) {
    return request({
      url: '/finance/kltSalesDetail/'+id,
      method: 'get'
    })
  }
  // 查询list
export function getSalesDetailList(query) {
  return request({
    url: '/finance/kltSalesDetail/list',
    method: 'get',
    params: query
  })
}
// 查询所有数据
export function getAllSalesDetail(query) {
  return request({
    url: '/finance/kltSalesDetail/selectAll',
    method: 'get',
    params: query
  })
}

// 新增
export function getSalesDetailInsert(data) {
  return request({
    url: '/finance/kltSalesDetail',
    method: 'post',
    data: data
  })
}

// 修改
export function getSalesDetailEdit(data) {
  return request({
    url: '/finance/kltSalesDetail',
    method: 'put',
    data: data
  })
}


// 删除
export function getSalesDetailDelete(data) {
  return request({
    url: '/finance/kltSalesDetail?idList='+data,
    method: 'delete',
    
  })
}


// list计数
export function getSalesDetailCount(data) {
  return request({
    url: '/finance/kltSalesDetail/count',
    method: 'get',
    params:data
  })
}